#include "wiringPi.h"
#include "pcf8591.h"
#include <stdio.h>


int main(void)
{
  int value;
  wiringPiSetup();
  pcf8591Setup(65, 0x48);
  while(1)
  { 
    value = analogRead(66);
    printf("value: %d------temp: %.2f\n", value, value/255.0*500);
    delay(100);
  }
}

